package com.snail.springjpa.demo;

import com.snail.springjpa.config.MyConfig;
import com.snail.springjpa.entity.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @title: ConfigDemp
 * @Author liwenbo
 * @Date: 2021/8/25 17:05
 */

@Configuration
@ComponentScan("com.snail.springjpa.demo")
@Import(MyConfig.class)
public class ConfigDemo {

    @Bean
    public Student student() {
        return new Student();
    }
}
